home *** CD-ROM | disk | FTP | other *** search
- /************************************************************************************************/
- /* */
- /* Program Name: Stiletto */
- /* */
- /* File Name: TesModule.h */
- /* */
- /* © Apple Computer, Inc. 1991-1995 */
- /* All Rights Reserved */
- /* */
- /* Revision History: */
- /* */
- /* Date Who Modification */
- /* */
- /* 1991-07-10 Chris Halim Original version */
- /* 1995-06-26 Jaakko Railo Version 2.0 */
- /* */
- /************************************************************************************************/
-
- /****************************************** DESCRIPTION ******************************************
-
- *************************************************************************************************/
-
- /************************************************************************************************/
- /************************************************************************************************/
-
-
- #ifndef __TESTMODULE__
- #define __TESTMODULE__
-
- #ifndef __TELEPHONES__
- #include "Telephones.h"
- #endif
-
- #ifndef __CHRSMODULES__
- #include "CHRSModules.h"
- #endif
-
-
- typedef pascal short (*TestModuleProcPtr)(CHRSPtr paramPtr);
-
- enum {
- uppTestModuleProcInfo = kPascalStackBased
- | RESULT_SIZE(SIZE_CODE(sizeof(short)))
- | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(CHRSPtr)))
- };
-
- #if GENERATINGCFM
- #define CallTestModuleProc(userRoutine, paramPtr) \
- CallUniversalProc((UniversalProcPtr)(userRoutine), uppTestModuleProcInfo, (paramPtr))
- #else
- #define CallTestModuleProc(userRoutine, paramPtr) \
- (*(userRoutine))((paramPtr))
- #endif
-
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
-
- void ExecuteAnyModule (void);
- void ExecuteModule (FSSpecPtr theFile);
-
-
- #ifdef __cplusplus
- }
- #endif
-
-
- #endif /* __TESTMODULE__ */
-